<div id="box">
  <form action="<?php echo base_url(); ?>admin/hotel/<?php if(isset($_GET['id'])) echo "update?id=".$_GET["id"];else echo "insert";?>" method="post" enctype="multipart/form-data">
    <fieldset id="personal">
      <legend>&nbsp;&nbsp;Edit Hotel&nbsp;&nbsp;</legend>
      <label>ID : </label>
      <?php if(count($detail)>0) echo $detail['id'];else echo "ID"; ?>
      <br>
      <label>Name : </label>
      <input name="name" id="name" required type="text" value="<?php echo $detail['name']; ?>" tabindex="2">
      <br>
      <label>Address : </label>
      <input name="address" id="address" required type="text" value="<?php echo $detail['address']; ?>" tabindex="2">
      <br>
      <label>Overview : </label>
      <br />
      <?php 
										$fck = new FCKeditor('overview');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['overview'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Description : </label>
      <?php $fck = new FCKeditor('description');
	  									$fck = new FCKeditor('description');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['description'];	
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Category : </label>
      <select name="category" id="category">
        <option value="1">Hotel - Wifi</option>
        <option value="2">Hotel</option>
        <option value="3">Hotel - Wifi in Public Area</option>
        <option value="4">Resort</option>
        <option value="5">Guest House</option>
      </select>
      <br>
      <label>Destination : </label>
      <select class="fl w287 bder_d5 h23 gray mgb3" name="provide" id="provide">
        <option value="bagan">Bagan</option>
        <option value="inle">Inle</option>
        <option value="mandalay">Mandalay</option>
        <option value="yangon">Yangon</option>
      </select>
      <br />
      <label>Star : </label>
      <select name="star" id="star">
        <option value="-1">Choice Star</option>
        <?php for($i=0;$i<=5;$i++){?>
        <option value="<?php echo $i ?>" <?php if($detail["star"]==$i) echo "selected";?>>&nbsp;<?php echo $i ?> star</option>
        <?php }?>
      </select>
      <br />
      <label>Avatar : </label>
      <input name="fuavatar" id="fuavatar" type="file" tabindex="2">
      <img src="<?php echo base_url().'uploads/hotel/'. $detail["avatar"];?>" width="150"/><br />
      <label>Policy : </label>
      <br />
      <?php 
										$fck = new FCKeditor('policy');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['policy'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Hotel Facility : </label>
      <?php 
										$fck = new FCKeditor('hotelfacility');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['hotelfacility'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <!--<label for="roomfacility">Room Facility : </label>
      <?php 
										//$fck = new FCKeditor('roomfacility');
//										$fck->BasePath = sBASEPATH;
//								        $fck->Value  = $detail['roomfacility'];					
//										$fck->Width  = '100%';
//										$fck->Height = 400;
//										$fck->Create();
									   ?>
      <br />-->
      <label>Business Facility : </label>
      <?php 
										$fck = new FCKeditor('businessfacility');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['businessfacility'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Recreational Facility : </label>
      <?php 
										$fck = new FCKeditor('recreationalfacility');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['recreationalfacility'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Guest's Review : </label>
      <?php 
										$fck = new FCKeditor('guestreview');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['guestreview'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Restaurant : </label>
      <?php 
										$fck = new FCKeditor('restaurant');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['restaurant'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Near By : </label>
      <?php 
										$fck = new FCKeditor('nearby');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['nearby'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Lat : </label>
      <input name="lat" id="lat" required type="text" value="<?php echo $detail["lat"] ?>" tabindex="2">
      <br />
      <label>Long : </label>
      <input name="long" id="long" required type="text" value="<?php echo $detail["long"] ?>" tabindex="2">
      <br />
      <label>Status : </label>
      <select name="status" id="status">
        <option value="-1">Choice Status</option>
        <option value="0" <?php if($detail['status']==0) echo "selected"; ?>>Highlights</option>
        <option value="1" <?php if($detail['status']==1) echo "selected"; ?>>Normal</option>
        <option value="2" <?php if($detail['status']==2) echo "selected"; ?>>Hide</option>
      </select>
      <br />
      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Submit">
      </div>
    </fieldset>
  </form>
</div>
